package com.ruoyi.basic.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 播放器配置对象 player
 *
 * @author ruoyi
 * @date 2025-11-13
 */
public class Player extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 播放器ID */
    private Long playerId;

    /** 播放器标识(英文,唯一) */
    @Excel(name = "播放器标识")
    private String code;

    /** 播放器名称 */
    @Excel(name = "播放器名称")
    private String name;

    /** 播放器描述 */
    @Excel(name = "播放器描述")
    private String description;

    /** 状态(0停用 1启用) */
    @Excel(name = "状态", readConverterExp = "0=停用,1=启用")
    private String status;

    /** 排序(降序) */
    @Excel(name = "排序")
    private Integer sort;

    /** 解析接口地址 */
    @Excel(name = "解析接口")
    private String parseApi;

    /** 是否需要解析(0否 1是) */
    @Excel(name = "需要解析", readConverterExp = "0=否,1=是")
    private String needParse;

    /** 打开方式(_self _blank) */
    @Excel(name = "打开方式")
    private String target;

    /** 提示信息 */
    @Excel(name = "提示信息")
    private String tip;

    /** 播放器JS代码 */
    private String playerCode;

    private String playerType;

    public String getPlayerType() {
        return playerType;
    }

    public void setPlayerType(String playerType) {
        this.playerType = playerType;
    }

    public void setPlayerId(Long playerId)
    {
        this.playerId = playerId;
    }

    public Long getPlayerId()
    {
        return playerId;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }

    public void setParseApi(String parseApi)
    {
        this.parseApi = parseApi;
    }

    public String getParseApi()
    {
        return parseApi;
    }

    public void setNeedParse(String needParse)
    {
        this.needParse = needParse;
    }

    public String getNeedParse()
    {
        return needParse;
    }

    public void setTarget(String target)
    {
        this.target = target;
    }

    public String getTarget()
    {
        return target;
    }

    public void setTip(String tip)
    {
        this.tip = tip;
    }

    public String getTip()
    {
        return tip;
    }

    public void setPlayerCode(String playerCode)
    {
        this.playerCode = playerCode;
    }

    public String getPlayerCode()
    {
        return playerCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("playerId", getPlayerId())
            .append("code", getCode())
            .append("name", getName())
            .append("description", getDescription())
            .append("status", getStatus())
            .append("sort", getSort())
            .append("parseApi", getParseApi())
            .append("needParse", getNeedParse())
            .append("target", getTarget())
            .append("tip", getTip())
            .append("playerCode", getPlayerCode())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
